<template>
  <div>
    <el-form ref="form" :model="form" label-width="80px">
      <el-form-item label="活动名称">
        <el-input v-model="form.name" disabled />
      </el-form-item>
      <el-form-item label="活动名称">
        <el-input v-model="form.companyAddress" disabled />
      </el-form-item>
      <el-form-item label="活动名称">
        <el-input v-model="form.companyPhone" disabled />
      </el-form-item>
      <el-form-item label="活动名称">
        <el-input v-model="form.mailbox" disabled />
      </el-form-item>
      <el-form-item label="活动名称">
        <el-input v-model="form.remarks" disabled />
      </el-form-item>
    </el-form>
  </div>
</template>

<script>
import { getCompanyById } from '../../../api/setting.js'
import { mapGetters } from 'vuex'
export default {
  data () {
    return {
      // 表单
      form: {}
    }
  },
  computed: {
    ...mapGetters(['userInfo'])
  },
  async created () {
    const res = await getCompanyById(this.userInfo.companyId)
    // console.log('res', res)
    this.form = res
  }
}
</script>

<style></style>
